package org.yscz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: pe
 * @description: 量表表
 * @author: muqs
 * @create: 2021-08-19 10:54
 **/
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_scale")
public class Scale implements Serializable {

    /**
     * 量表ID
     */
    @TableId(value = "scale_id", type = IdType.AUTO)
    private Long scaleId;

    /**
     * 量表名称
     */
    @TableField(value = "scale_name")
    private String scaleName;

    /**
     * 题目数量
     */
    @TableField(value = "question_num")
    private Integer questionNum;

    /**
     * 排序
     */
    @TableField(value = "scale_sort")
    private String scaleSort;

    /**
     * 编辑时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date updateTime;

    /**
     * 量表描述
     */
    @TableField(value = "scale_content")
    private String scaleContent;

    /**
     * 量表分类ID
     */
    @TableField(value = "scale_type_id_fk")
    private Long scaleTypeIdFk;
}
